Skip to content

TST: Fixed version comparison #20469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 24, 2018
Merged

Conversation

TomAugspurger
Copy link
Contributor

This failed to skip for 3.5.x because the micro component made it False.

closes #20468

This failed to skip for 3.5.x because the micro component made it False.
@TomAugspurger TomAugspurger added this to the 0.23.0 milestone Mar 23, 2018
@TomAugspurger TomAugspurger added Testing pandas testing functions or related to the test suite Unreliable Test Unit tests that occasionally fail labels Mar 23, 2018
@@ -81,7 +81,7 @@ def test_fillna_frame(self):

class TestMethods(base.BaseMethodsTests):
unhashable = pytest.mark.skip(reason="Unhashable")
unstable = pytest.mark.skipif(sys.version_info <= (3, 5),
unstable = pytest.mark.skipif(sys.version_info < (3, 6),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use PY36 from compat here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, it's not obvious that compat.PY36 is 36 or greater. I thought it was exactly 3.6

@codecov
Copy link

codecov bot commented Mar 23, 2018

Codecov Report

Merging #20469 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #20469      +/-   ##
==========================================
+ Coverage   91.83%   91.84%   +<.01%     
==========================================
  Files         152      152              
  Lines       49231    49231              
==========================================
+ Hits        45213    45215       +2     
+ Misses       4018     4016       -2
Flag Coverage Δ
#multiple 90.22% <ø> (ø) ⬆️
#single 41.83% <ø> (ø) ⬆️
Impacted Files Coverage Δ
pandas/util/testing.py 84.73% <0%> (+0.2%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 53ad5c6...291601e. Read the comment docs.

@@ -4,6 +4,7 @@
import pytest


from pandas.compat import PY36
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can also import PY2 here and replace sys.version_info[0] == 2 on line 12 with it, as that is the exact definition of PY2. That's the only remaining reference to sys, so you could then remove the import sys too.

@TomAugspurger TomAugspurger merged commit 4fb963b into pandas-dev:master Mar 24, 2018
@TomAugspurger TomAugspurger deleted the ci-ea-test branch March 24, 2018 01:14
javadnoorb pushed a commit to javadnoorb/pandas that referenced this pull request Mar 29, 2018
* TST: Fixed version comparison

This failed to skip for 3.5.x because the micro component made it False.

* Use pandas.compat

* More pandas compat
dworvos pushed a commit to dworvos/pandas that referenced this pull request Apr 2, 2018
* TST: Fixed version comparison

This failed to skip for 3.5.x because the micro component made it False.

* Use pandas.compat

* More pandas compat
kornilova203 pushed a commit to kornilova203/pandas that referenced this pull request Apr 23, 2018
* TST: Fixed version comparison

This failed to skip for 3.5.x because the micro component made it False.

* Use pandas.compat

* More pandas compat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Unreliable Test Unit tests that occasionally fail
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky ExtensionArray tests
4 participants